NativeFrame

interface NativeFrame

Gives access to the native CMSampleBuffer of a Frame (port of V5's Public/NativeFrame.swift).

This is an extension point for plugin modules, which read the frame's native buffer through it:

val sampleBuffer = (frame as NativeFrame).sampleBuffer
val pixelBuffer = sampleBuffer?.let { CMSampleBufferGetImageBuffer(it) }

Properties

Link copied to clipboard

The frame's timestamp, orientation and mirroring.

Link copied to clipboard
abstract val sampleBuffer: CMSampleBufferRef?

The frame's sample buffer, or null once it has been disposed. It is invalidated when the frame is disposed.